﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ChainofResponsibilitySFIStudy
{
    class OddSuport :Support
    {
        public OddSuport(String name)
            : base(name)
        {
        }
        protected override bool resolve(Trouble trouble)
        {
            if (trouble.getNumber() % 2 == 1)
            {
                return true;
            }
            else
            {
                return false;
            }
        }

    }
}
